/**
 * Created by czg on 2019/1/7 0007 Time: 14:22 .
 */
import Vue from 'vue'
import Router from 'vue-router'
import Index from '../pages/index'
import ListFrom from '../pages/listFrom'
import MemSer from '../pages/memSer'
import ShopFront from '../pages/shopFront'
import Comments from '../pages/comments'
import SerFaci from '../pages/serFaci'
import Detail from '../pages/detail'
import MemDetail from '../pages/memDetail'
import FaciDetail from '../pages/faciDetail'
import Info from '../pages/information'
import Arrive from '../pages/arrive'
import StoreInfo from '../pages/storeInfo'
Vue.use(Router)

export default new Router({
  routes: [
    {
      path: '/',
      redirect: '/index'
    },
    {
      path: '/index',
      name: 'index',
      component: Index,
      meta: {
        title: '云门NEW PARK'
      }
    },
    {
      path: '/listFrom',
      name: 'listFrom',
      component: ListFrom,
      meta: {
        title: ''
      }
    },
    {
      path: '/memSer',
      name: '会员服务',
      component: MemSer,
      meta: {
        title: '会员服务'
      }
    },
    {
      path: '/shopFront',
      name: '楼层导览',
      component: ShopFront,
      meta: {
        title: '楼层导览'
      }
    },
    {
      path: '/comments',
      name: '意见搜集',
      component: Comments,
      meta: {
        title: '意见搜集'
      }
    },
    {
      path: '/serFaci',
      name: '服务设施',
      component: SerFaci,
      meta: {
        title: '服务设施'
      }
    },
    {
      path: '/detail',
      name: 'detail',
      component: Detail,
      meta: {
        title: '活动详情'
      }
    },
    {
      path: '/memDetail',
      name: 'memDetail',
      component: MemDetail,
      meta: {
        title: '详情页'
      }
    },
    {
      path: '/faciDetail',
      name: 'faciDetail',
      component: FaciDetail,
      meta: {
        title: '详情页'
      }
    },
    {
      path: '/info',
      name: 'info',
      component: Info,
      meta: {
        title: '商城简介'
      }
    },
    {
      path: '/arrive',
      name: 'arrive',
      component: Arrive,
      meta: {
        title: '如何到达'
      }
    },
    {
      path: '/storeInfo',
      name: 'storeInfo',
      component: StoreInfo,
      meta: {
        title: '店铺详情'
      }
    }
  ]
})
